Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve #360 #456

Merged
merged 4 commits into from
Nov 26, 2023
Merged

Resolve #360 #456

merged 4 commits into from
Nov 26, 2023

Conversation

kayabaNerve
Copy link
Member

Uses session instead of key and performs other misc optimizations.

Because intent binds to the sender/receiver, it's not needed for intent.

The processor knows what the network is.

The coordinator knows which to use because it's sending this message to the
processor for that network.

Also removes the unused zeroize.
@kayabaNerve kayabaNerve added improvement This could be better processor labels Nov 26, 2023
@kayabaNerve
Copy link
Member Author

Resolves #360.

@kayabaNerve
Copy link
Member Author

Should save ~20% off message-queue storage costs, reduces code complexity a bit in exchange for the processor tracking sessions, and removes ~150 lines in total.

@kayabaNerve kayabaNerve merged commit 571195b into develop Nov 26, 2023
19 checks passed
@kayabaNerve kayabaNerve deleted the efficient-processor-messages branch November 26, 2023 17:14
kayabaNerve added a commit that referenced this pull request Nov 29, 2023
* Remove NetworkId from processor-messages

Because intent binds to the sender/receiver, it's not needed for intent.

The processor knows what the network is.

The coordinator knows which to use because it's sending this message to the
processor for that network.

Also removes the unused zeroize.

* ProcessorMessage::Completed use Session instead of key

* Move SubstrateSignId to Session

* Finish replacing key with session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This could be better processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant